{template modoer_header}
<script type="text/javascript" src="{URLROOT}/static/javascript/swfobject.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    <!--{if $MOD['show_thumb'] && $detail['pictures']}-->
    get_pictures($sid);
    <!--{/if}-->
    get_membereffect($sid, $modelid);
    <!--{if $MOD['ajax_taoke'] && $taoke_product_field}-->
    get_subject_taoke($sid);
    <!--{/if}-->
    //弹出浮动层
    $(".J_prowerfloat").powerFloat({reverseSharp:true});
    //图片垂直
    if(!$.browser.msie && !$.browser.safari) {
        var d = $("#thumb");
        var dh = parseInt(d.css("height").replace("px",''));
        var ih = parseInt(d.find("img").css("height").replace("px",''));
        if(dh - ih < 3) return;
        var top = Math.ceil((dh - ih) / 2);
        d.find("img").css("margin-top",top+"px");
    }
});
</script>
<!--{eval $reviewcfg = $_G['loader']->variable('config','review');}-->
<!--{eval $fullname = $detail[name].($detail[subname]?("(".$detail[subname].")"):'');}-->
<div id="body">
<div class="link_path">
    <em class="font_3">
        <!--{loop $links $i $link}-->
        {if $i}<span class="xsplit">|</span>{/if}
        <a href="$link[url]"{if $link[flag]=='item/detail'} style="color:#ff6600;"{/if}>$link[title]</a>
        <!--{/loop}-->
    </em>
    <a href="{url modoer/index}">{lang global_index}</a>
    &raquo;
    {print implode(' &raquo; ', $urlpath)}
    &raquo;
    $detail[name]{if $detail[subname]}($detail[subname]){/if}
</div>

<div id="item_left">
    <div class="item_detail">
    <div class="rail-border-1">
        <div class="header">
            <h2>$fullname</h2>
            <div class="title_mt">
                <!--{if $detail[owner]}-->
                <span class="icomoon icon-user" title="管理员"></span><a href="{url space/index/username/$detail[owner]}" target="_blank">$detail[owner]</a>
                <!--{elseif $catcfg[subject_apply]}-->
                <span class="icomoon icon-mouse"><a href="{url item/member/ac/subject_apply/sid/$detail[sid]}"></span>认领$model[item_name]</a>
                <!--{/if}-->
                <!--{if $catcfg[use_subbranch] || $branch}-->
                    <!--{if $branch&&$branch['total']>1}-->
                        <span class="icomoon icon-plus-circle"></span><a class="J_prowerfloat" rel="branch_box" href="#">其他{print $branch['total']-1}家分店</a>
                        <ul id="branch_box" class="branch-group" style="display:none;">
                            <!--{get:item val=branch(branch_id/$branch[id]/pid/$detail[pid]/rows/4)}-->
                            <!--{if $val['sid'] != $sid}-->
                            <li class="branch-item">
                                <h6><a href="{url item/detail/id/$val[sid]}">$val[subname]</a></h6>
                                <p>
                                    <span class="start start{print get_star($val[avgsort], S('review:scoretype'))}"></span>
                                    $val[address]
                                </p>
                            </li>
                            <!--{/if}-->
                            <!--{/get}-->
                            <li class="branch-item branch-buttons">
                                <a href="{url item/member/ac/subject_add/subbranch_sid/$detail[sid]}">添加分店</a>
                                <span class="xsplit">|</span>
                                <a href="{url item/list/catid/$detail[pid]/branch_id/$branch[id]}">查看全部分店</a>
                            </li>
                        </ul>
                    <!--{else}-->
                        <span class="icomoon icon-plus-circle"></span><a href="{url item/member/ac/subject_add/subbranch_sid/$detail[sid]}">添加分店</a>
                    <!--{/if}-->
                <!--{/if}-->
            </div>
            <div class="clear"></div>
            <div class="item-stat">
                <span class="start start{print get_star($detail[avgsort],$reviewcfg[scoretype])}"></span>
                <span class="font_3">($detail[reviews])</span>
                <span class="xsplit">|</span>
                <!--{if $catcfg[useprice]}-->
                $catcfg[useprice_title]:<span class="font_2 fs16">$detail[avgprice]</span> $catcfg[useprice_unit]
                <span class="xsplit">|</span>
                <!--{/if}-->
                <!--{loop $reviewpot $val}-->
                $val[name]:<span class="font_2">{print cfloat($detail[$val[flag]])}</span>
                <!--{/loop}-->
                综合:<span class="font_2 fs16">{print cfloat($detail[avgsort])}</span>
                <span class="xsplit">|</span>
                <!--{if $MOD[gourd_enabled]}-->
                    <!--{if !$gourd}-->
                    <a href="javascript:;" onclick="item_buy_gourd($sid,'{$MOD[gourd_buy_point]}个{print:member point(point/$MOD[gourd_buy_pointtype])}');return false;"><span class="icomoon icon-leaf ic-green" title="种葫芦"></span></a>
                    <!--{/if}-->
                    <!--{if $gourd}-->
                    <a class="J_prowerfloat" href="javascript:;" id="gourd_image" rel="gourd_box"><span class="icomoon icon-leaf ic-green" title="摘葫芦"></span></a>
                    <div class="gourd_box" id="gourd_box">
                        <!--{eval $gps = round($gourd[progress]/$MOD[gourd_condition]*100/20)+1;}-->
                        <div class="gourd_pic {if $gourd[status]=='harvest'}gourd_6{else}gourd_$gps{/if}" id="gourd_image" rel="gourd_box"></div>
                        <!--{if $gourd[status]=='harvest'}-->
                        <div class="gourd_pick">
                            <a href="javascript:void(0);" onclick="item_pick_gourd($gourd[id]);return false;" class="abtn2"><span class="gourd-ico">摘取葫芦</span></a>
                        </div>
                        <!--{/if}-->
                        <div class="gourd_content">
                            <strong>葫芦藤是什么？</strong>
                            <br />会员通过浏览，点评和添加印象可以使葫芦藤成长，当葫芦藤结果后，会员即可采摘取葫芦(获得积分)。
                            <br />1 个葫芦为<span class="font_2">{$MOD[gourd_point]}</span>个{print:member point(point/$MOD[gourd_pointtype])}
                            <!--{if $gourd[status]=='grow'}-->
                            <br />当前葫芦藤成熟度: <span class="font_2">{print round($gourd[progress]/$MOD[gourd_condition]*100)}%</span>
                            <!--{else}-->
                            <br />剩余葫芦数量: <span class="font_2" id="ground_num" num="{print $gourd[total]-$gourd[num]}">{print $gourd[total]-$gourd[num]}</span>个
                            <!--{/if}-->
                        </div>
                    </div>
                    <!--{/if}-->
                <!--{/if}-->
                <!--{if $MOD[show_qrcode]}-->
                    <a class="J_prowerfloat" href="javascript:;" id="qrcode_image" rel="qrcode_box"><span class="icomoon icon-qrcode" title="手机站二维码"></span></a>
                    <div id="qrcode_box" style="border:1px solid #ddd;display:none;"><img src="{print get_qrcode(url("item/detail/id/$sid",'',1))}"></div>
                <!--{/if}-->
                <!--{if $_CFG[sharecode]}-->
                <a class="J_prowerfloat" href="javascript:;" id="sharecode" rel="sharecode_box"><span class="icomoon icon-newtab" title="分享"></span></a>
                    <div class="sharecode_box" id="sharecode_box">
                        {$_CFG[sharecode]}
                    </div>
                <!--{/if}-->
            </div>
        </div>
        <div class="body">

            <ul class="field">
                <!--{if $detail_custom_field}-->
                <li>
                    <table class="custom_field" border="0" cellspacing="0" cellpadding="0">
                        $detail_custom_field
                        <!--{if $catcfg[useeffect]}-->
                        <tr>
                            <td class='key' align='left'>会员参与：</td>
                            <td width="*">
                                <!--{if $catcfg[effect1]}-->
                                有&nbsp;<span id="num_effect1" class="font_2">0</span>&nbsp;位会员{$catcfg[effect1]}(<a href="javascript:post_membereffect($sid,'effect1');">我{$catcfg[effect1]}</a>,<a href="javascript:get_membereffect($sid,'effect1','Y');">查看</a>) ,
                                <!--{/if}-->
                                <!--{if $catcfg[effect2]}-->
                                有&nbsp;<span id="num_effect2" class="font_2">0</span>&nbsp;位会员{$catcfg[effect2]}(<a href="javascript:post_membereffect($sid,'effect2');">我{$catcfg[effect2]}</a>,<a href="javascript:get_membereffect($sid,'effect2','Y');">查看</a>) .
                                <!--{/if}-->
                            </td>
                        </tr>
                        <!--{/if}-->
                        <tr>
                            <td class='key' align='left'>{$model[item_name]}印象：</td>
                            <td width="*">
                                <span id="subject_impress">
                                <!--{get:item val=impress(sid/$sid/orderby/total DESC/rows/5)}-->
                                <span class="{print:item tagclassname(total/$val[total])}">$val[title]</span>&nbsp;
                                <!--{getempty(val)}-->
                                暂无信息
                                <!--{/get}-->
                                <!--{if count($_QUERY[get_val])>=4}-->
                                <span class="arrow-ico"><a href="javascript:item_impress_get($sid,1);">更多</a></span>
                                <!--{/if}-->
                                </span>
                            </td>
                        </tr>
                        {if ! $MOD[close_detail_total]}
                        <tr>
                            <td class='key' align='left'>数据统计：</td>
                            <td width="*">
                                <span class="font_2">$detail[pageviews]</span>次浏览,<span class="font_2">$detail[reviews]</span>条点评,<span class="font_2">$detail[guestbooks]</span>条留言,<span class="font_2">$detail[pictures]</span>张图片,<span class="font_2">$detail[favorites]</span>个关注{if $detail[products]},<span class="font_2">$detail[products]</span>个产品{/if}
                            </td>
                        </tr>
                        {/if}
                    </table>
                </li>
                <!--{/if}-->
                <li class="item_opteration">
                    <!--{if $review_enable||$user->isLogin}-->
                    <a class="abtn1" href="{url review/member/ac/add/type/item_subject/id/$sid}"><span><b>我要点评</b></span></a>
                    <!--{elseif !$user->isLogin}-->
                    <a class="abtn1" href="javascript:dialog_login();"><span><b>我要点评</b></span></a>
                    <!--{/if}-->
                    <span class="icomoon icon-quotes-left"></span><a href="javascript:item_impress_add($sid);">添加印象</a>
                    <span class="xsplit">|</span>
                    <span class="icomoon icon-star"></span><a href="javascript:add_favorite($detail[sid]);"><span>关注</span></a>
                    <span class="xsplit">|</span>
                    <span class="icomoon icon-pencil"></span><a href="javascript:post_log($detail[sid]);"><span>补充信息</span></a>
                    <!--{if check_module('article')}-->
                    <!--{eval $postarticle_url = $detail[ownerid] && $detail[ownerid] == $user->uid ? 'ownernews' : 'membernews';}-->
                    <span class="xsplit">|</span>
                    <span class="icomoon icon-pencil2"></span><a href="{url article/member/ac/article/op/add/sid/$detail[sid]}"><span>发布资讯</span></a>
                    <!--{/if}-->
                    <!--{if check_module('mylist')}-->
                    <span class="xsplit">|</span>
                    <span class="icomoon icon-file"></span><a href="javascript:" id="add_mylist" data-sid="$sid">加到我的榜单</a>
                    <!--{/if}-->
                </li>
            </ul>

            <div class="right">
                <div class="picture" id="thumb">
                    <a href="{url item/pic/sid/$detail[sid]}"><img src="{URLROOT}/{if $detail[thumb]}$detail[thumb]{else}static/images/noimg.gif{/if}" alt="$detail[name]" /></a>
                </div>
                <div class="">
                    <span class="icomoon icon-file-upload ic-yellow"></span><a href="{url item/member/ac/pic_upload/sid/$sid}">上传图片</a>
                    <!--{if $detail[pictures]}-->
                    <span class="icomoon icon-image ic-yellow"></span><a href="{url item/pic/sid/$detail[sid]}">$detail[pictures]图</a>
                    <!--{/if}-->
                </div>
                <ul class="log">
                    <!--{if $detail[creator]}-->
                    <li>登记:<span class="member-ico"><a href="{url space/index/username/$detail[creator]}" title="{date $detail[addtime]}">$detail[creator]</a></span></li>
                    <!--{/if}-->
                </ul>
            </div>

            <div class="clear"></div>

            <div class="info" id="effect_floor" style="display:none;">
                <em>[<a href="javascript:;" onclick="$('#effect_floor').css('display','none');">关闭</a>]</em>
                <h3><span class="arrow-ico">会员参与</span></h3>
                <p class="members" id="effect"></p>
            </div>

            <!--{loop $relate_subject_field $field}-->
            <!--{if $detail[$field[fieldname]]}-->
            <div class="info">
                <em>[<a href="{url item/related/fid/$field[fieldid]/id/$detail[sid]}">查看全部</a>]&nbsp;[<a href="javascript:;" onclick="$('#relate_subject_$field[fieldid]').toggle();">收起/展开</a>]</em>
                <h3><span class="arrow-ico">$field[title]</span></h3>
                <ul class="relate" id="relate_subject_$field[fieldid]">
                <!--{get:item val=related(fieldid/$field[fieldid]/sid/$detail[sid]/rows/$field[config][savelen])}-->
                <li>
                    <div class="relate_thumb">
                        <a href="{url item/detail/id/$val[sid]}"><img src="{URLROOT}/{if $val[thumb]}$val[thumb]{else}static/images/noimg.gif{/if}" title="$val[name]" alt="$val[name]" /></a>
                    </div>
                    <div class="relate_info">
                        <h5><a href="{url item/detail/id/$val[sid]}" title="$val[name]&nbsp;$val[subname]">{sublen $val[name],7}</a></h5>
                        <span class="relate_sp">{$val[reviews]}点评{if $val[reviews]}, 好评率{print round($val[best]/$val[reviews]*100)}%{/if}</span>
                        <span class="relate_sp">分类: <a href="{url item/list/catid/$val[catid]}">{print:item category(catid/$val[catid])}</a></span>
                        <span><a href="{url item/detail/id/$val[sid]}#review" class="font_2">点评</a></span> <span><a href="{url item/guestbook/sid/$val[sid]}" class="font_2">留言</a></span> 
                    </div>
                </li>
                <!--{/get}-->
                </ul>
                <div class="clear"></div>
            </div>
            <!--{/if}-->
            <!--{/loop}-->
			
            <!--{if $MOD['ajax_taoke'] && $taoke_product_field}-->
            <!--淘宝客数据AJAX加载层-->
            <div id="taoke_field_foo">
                <div style="margin:10px 5px;"><span class="loading-ico">正在加载数据,请稍候...</span></div>
            </div>
            <!--{else}-->
            <!--{template item_subject_detail_taoke}-->
            <!--{/if}-->

            <!--{if $MOD['show_thumb'] && $detail['pictures']}-->
            <div class="info">
                <em>[<a href="{url item/pic/sid/$detail[sid]}">查看全部</a>]&nbsp;[<a href="javascript:;" onclick="$('#itempics').toggle();">收起/展开</a>]</em>
                <h3><span class="arrow-ico">{$model[item_name]}图片</span></h3>
                <div class="itempics" id="itempics"{if $catcfg[detail_picture_hide]} style="display:none;"{/if}></div>
            </div>
            <!--{/if}-->

            <!--{loop $textarea_field $field}-->
            <!--{if $detail[$field[fieldname]]}-->
            <div class="info">
                <em>[<a href="javascript:;" onclick="$('#textarea_$field[fieldname]').toggle();">收起/展开</a>]</em>
                <h3><span class="arrow-ico">$field[title]</span></h3>
                <div class="content" id="textarea_$field[fieldname]"{if $catcfg[detail_content_hide]} style="display:none;"{/if}>$detail[$field[fieldname]]</div>
            </div>
            <!--{/if}-->
            <!--{/loop}-->
        </div>
    </div>
    </div>

    <script type="text/javascript" src="{URLROOT}/static/javascript/review.js"></script>
    <style type="text/css">@import url("{URLROOT}/{$_G[tplurl]}css_review.css");</style>
    <a name="$view" id="$view"></a>

    <div class="mt10">
    <!--{if $view == 'forum'}-->
        {template item_subject_detail_forum}
    <!--{elseif $view == 'guestbook'}-->
        {template item_subject_detail_guestbook}
    <!--{else}-->
        {template item_subject_detail_review}
    <!--{/if}-->
    </div>

</div>

<div id="item_right">

    <div class="mainrail rail-border-3">
        <!--{if $detail[video] && check_flash_domain($detail[video])}-->
        <div class="rail-h-bm-3">
            <div class="mainrail mb10" style="text-align:center;" id="video_foo"></div>
        </div>
        <script type="text/javascript">
        $(document).ready(function() {
            var so = new SWFObject("$detail[video]", 'video1', 245, 245, 7, '#FFF');
            so.addParam("allowScriptAccess", "always");
            so.addParam("allowFullScreen", "true");
            so.addParam("wmode", "transparent");
            so.write("video_foo");
        });
        </script>
        <!--{/if}-->
        <!--{if $model[usearea] && $fields[mappoint][show_detail]}-->
        <div class="mainrail rail-h-bm-3">
            <!--{eval $show_map = $detail[mappoint] ? 1 : 0;}-->
            <script type="text/javascript">
            function show_bigmap() {
                var src = "{url index/map/width/600/height/400/title/$fullname/p/$detail[mappoint]/show/$show_map}";
                var html = '<iframe src="' + src + '" frameborder="0" scrolling="no" width="100%" height="400" id="ifupmap_map"></iframe>';
                dlgOpen('查看大图', html, 600, 450);
            }
            </script>
            <a href="javascript:;"onclick="show_bigmap()">
                <img src="{print:modoer map_static_image(size/245x245/title/$fullname/p/$detail[mappoint]/show/$show_map)}" alt="$fullname" title="$fullname" />
            </a>
            <div style="text-align:center;padding:2px 0;color:#555;">
                <!--{if !$detail['mappoint']}-->
                <a href="javascript:post_map($detail[sid], $detail[pid]);">地图未标注，我来标注</a>
                <!--{else}-->
                <span class="icomoon icon-map"></span><a href="javascript:show_bigmap();">查看大图</a>&nbsp;
                <span class="icomoon icon-location"></span><a href="javascript:post_map($detail[sid], $detail[pid]);">报错</a>
                <!--{/if}-->
            </div>
        </div>
        <!--{/if}-->
        <!--{if $_G['modules']['product'] && $detail['products']}-->
        <div class="mainrail rail-h-bm-3">
            <em><a href="{url product/list/sid/$sid}">更多&nbsp;&raquo;</a></em>
            <h3 class="rail-h-3">{$model[item_name]}产品</h3>
            <!--{datacallname:产品_主题产品}-->
        </div>
        <!--{/if}-->

        <!--{if $detail['coupons'] && check_module('coupon')}-->
        <div class="mainrail rail-h-bm-3">
            <em><a href="{url coupon/list/sid/$sid}">更多&nbsp;&raquo;</a></em>
            <h3 class="rail-h-3">优惠券</h3>
            <ul class="rail-list">
                <!--{get:coupon val=list_subject(sid/$sid/orderby/dateline DESC/rows/5)}-->
                <li><cite>{date $val[dateline],'m-d'}</cite><a href="{url coupon/detail/id/$val[couponid]}" title="$val[subject]">{sublen $val[subject],16}</a></li>
                <!--{/get}-->
            </ul>
        </div>
        <!--{/if}-->

        <!--{if check_module('article')}-->
        <div class="mainrail rail-h-bm-3">
            <em><a href="{url article/list/sid/$sid}">更多&nbsp;&raquo;</a></em>
            <h3 class="rail-h-3">资讯</h3>
            <ul class="rail-list">
                <!--{get:article val=getlist(sid/$sid/orderby/dateline DESC/rows/5)}-->
                <li><cite>{date $val[dateline],'m-d'}</cite><a href="{url article/detail/id/$val[articleid]}" title="$val[subject]">{sublen $val[subject],16}</a></li>
                <!--{getempty(val)}-->
                <li>暂无信息</li>
                <!--{/get}-->
            </ul>
        </div>
        <!--{/if}-->

        <div class="mainrail rail-h-bm-3">
            <em>
                <span class="selected" id="btn_subject1" onclick="tabSelect(1,'subject')">同类{$model[item_name]}</span>
                <!--{if $model[usearea]}-->
                <span class="unselected" id="btn_subject2" onclick="tabSelect(2,'subject')">附近{$model[item_name]}</span>
                <!--{/if}-->
            </em>
            <h2 class="rail-h-3">相关{$model[item_name]}</h2>
            <div class="none" id="subject1" datacallname="主题_同类主题" params="{city_id:'$_CITY[aid]','catid':'$detail[catid]','sid':'$sid'}"></div>
            <!--{if $model[usearea]}-->
            <div class="none" id="subject2" datacallname="主题_附近主题" params="{city_id:'$_CITY[aid]','aid':'$detail[aid]','sid':'$sid'}"></div>
            <!--{/if}-->
        </div>
        <script type="text/javascript">
        $(document).ready(function() {
            tabSelect(1,'subject');
        });
        </script>

        <!--{if $detail[favorites]}-->
        <div class="mainrail  rail-h-bm-3">
            <h4 class="rail-h-3">近期关注会员</h4>
            <ul class="rail-faces">
                <!--{get:modoer val=table(table/dbpre_favorites/where/idtype='subject'AND id=$sid/orderby/addtime DESC/rows/9)}-->
                <li><div><img src="{print get_face($val[uid])}" /></div><span><a href="{url space/index/uid/$val[uid]}" target="_blank">$val[username]</a></span></li>
                <!--{getempty(val)}-->
                <li>暂无关注</li>
                <!--{/get}-->
            </ul>
            <div class="clear"></div>
        </div>
        <!--{/if}-->

        <div class="mainrail">
            <h4 class="rail-h-3">TA刚刚来过</h4>
            <ul class="rail-faces">
                <!--{get:modoer val=table(table/dbpre_visitor/where/sid=$sid/orderby/dateline DESC/rows/9)}-->
                <li><div><img src="{print get_face($val[uid])}" /></div><span><a href="{url space/index/uid/$val[uid]}" target="_blank">$val[username]</a></span></li>
                <!--{getempty(val)}-->
                <li>暂无来访会员</li>
                <!--{/get}-->
            </ul>
            <div class="clear"></div>
        </div>
    </div>

</div>

<div class="clear"></div>

</div>
<div id="adv_1_content" style="display:none;">
<!--{include display('adv:show','name/主题内容页_点评间广告')}-->
</div>
<script type="text/javascript">
//加载广告
replace_content('adv_1=adv_1_content');
</script>
<!--{eval footer();}-->